package mmoon.mmoonstory.interfaces;

import mmoon.mmoonstory.MMoonStory;
import net.minecraft.block.Block;
import net.minecraft.item.Item;

public interface HasModel {

    default void regModel() {
        if (this instanceof Item) {
            MMoonStory.MMoonProxy.regModel((Item) this);
        }else if (this instanceof Block) {
            MMoonStory.MMoonProxy.regModel(Item.getItemFromBlock((Block) this));
        }
    }
}
